import json
track_data = [
    {
        "created_at": "2022-12-22 20:05:26.000",
        "updated_at": "2023-01-11 12:53:12.000",
        "when": 1671710726955,
        "who": "xcsdk",
        "platform": "app",
        "what": "event",
        "action": "xcsdk_login_click",
        "module": "xcsdk_login",
        "custom_field_extend": "{\"action\":\"xcsdk_login_click\",\"module\":\"xcsdk_login\",\"click_type\":1,\"result\":[]}",
        "data1": "[]",
        "data2": "",
        "data3": "[]",
        "data4": "1",
        "data5": "",
        "data6": "",
        "data7": "",
        "data8": "",
        "data9": "[]",
        "op": "",
        "jbk": 0,
        "client_id": "",
        "udid": "",
        "tz": "",
        "lang": "",
        "width": 0,
        "height": 0,
        "mac": "",
        "net": "",
        "device_name": "",
        "os": 0,
        "system_version": "",
        "apil": "",
        "idfa": "",
        "idfv": "",
        "caid1": "",
        "caid2": "",
        "imei": "",
        "oaid": "",
        "android_id": "",
        "ip": "",
        "wn": "",
        "bssid": "",
        "brand": "",
        "factory": "",
        "ua": "",
        "emulator": 0,
        "cpu_model": "",
        "rom_size": "",
        "ram_size": "",
        "unique_id": "",
        "sdk_version": "1.15.2.1124",
        "middleware_version": "1.15.2.1124",
        "app_version": "1",
        "package_name": "com.junhai.yzjq",
        "app_id": 50436,
        "ad_id": 0,
        "data_extend": "{\"sdkversion\":\"1.15.2.1124\",\"middlewareversion\":\"1.15.2.1124\",\"appversion\":1,\"packagename\":\"com.junhai.yzjq\",\"channel_id\":\"800\",\"game_channel_id\":\"123456\",\"app_id\":\"50436\",\"ad_id\":\"0\",\"uid\":\"\"}"
    },
    {
        "created_at": "2022-12-22 20:05:26.000",
        "updated_at": "2023-01-11 12:53:12.000",
        "when": 1671710726955,
        "who": "xcsdk",
        "platform": "app",
        "what": "event",
        "action": "xcsdk_login_request",
        "module": "xcsdk_login",
        "custom_field_extend": "{\"action\":\"xcsdk_login_request\",\"module\":\"xcsdk_login\",\"login_type\":1,\"result\":[]}",
        "data1": "[]",
        "data2": "",
        "data3": "[]",
        "data4": "",
        "data5": "1",
        "data6": "",
        "data7": "",
        "data8": "",
        "data9": "[]",
        "op": "",
        "jbk": 0,
        "client_id": "",
        "udid": "",
        "tz": "",
        "lang": "",
        "width": 0,
        "height": 0,
        "mac": "",
        "net": "",
        "device_name": "",
        "os": 0,
        "system_version": "",
        "apil": "",
        "idfa": "",
        "idfv": "",
        "caid1": "",
        "caid2": "",
        "imei": "",
        "oaid": "",
        "android_id": "",
        "ip": "",
        "wn": "",
        "bssid": "",
        "brand": "",
        "factory": "",
        "ua": "",
        "emulator": 0,
        "cpu_model": "",
        "rom_size": "",
        "ram_size": "",
        "unique_id": "",
        "sdk_version": "1.15.2.1124",
        "middleware_version": "1.15.2.1124",
        "app_version": "1",
        "package_name": "com.junhai.yzjq",
        "app_id": 50436,
        "ad_id": 0,
        "data_extend": "{\"sdkversion\":\"1.15.2.1124\",\"middlewareversion\":\"1.15.2.1124\",\"appversion\":1,\"packagename\":\"com.junhai.yzjq\",\"channel_id\":\"800\",\"game_channel_id\":\"123456\",\"app_id\":\"50436\",\"ad_id\":\"0\",\"uid\":\"\"}"
    },
    {
        "created_at": "2022-12-22 20:05:26.000",
        "updated_at": "2023-01-11 12:53:12.000",
        "when": 1671710726955,
        "who": "xcsdk",
        "platform": "app",
        "what": "event",
        "action": "xcsdk_login_result",
        "module": "xcsdk_login",
        "custom_field_extend": "{\"action\":\"xcsdk_login_result\",\"module\":\"xcsdk_login\",\"login_type\":1,\"result\":1,\"fail_detail\":\"\"}",
        "data1": "[1]",
        "data2": "",
        "data3": "[]",
        "data4": "",
        "data5": "1",
        "data6": "",
        "data7": "",
        "data8": "",
        "data9": "[]",
        "op": "",
        "jbk": 0,
        "client_id": "",
        "udid": "",
        "tz": "",
        "lang": "",
        "width": 0,
        "height": 0,
        "mac": "",
        "net": "",
        "device_name": "",
        "os": 0,
        "system_version": "",
        "apil": "",
        "idfa": "",
        "idfv": "",
        "caid1": "",
        "caid2": "",
        "imei": "",
        "oaid": "",
        "android_id": "",
        "ip": "",
        "wn": "",
        "bssid": "",
        "brand": "",
        "factory": "",
        "ua": "",
        "emulator": 0,
        "cpu_model": "",
        "rom_size": "",
        "ram_size": "",
        "unique_id": "",
        "sdk_version": "1.15.2.1124",
        "middleware_version": "1.15.2.1124",
        "app_version": "1",
        "package_name": "com.junhai.yzjq",
        "app_id": 50436,
        "ad_id": 0,
        "data_extend": "{\"sdkversion\":\"1.15.2.1124\",\"middlewareversion\":\"1.15.2.1124\",\"appversion\":1,\"packagename\":\"com.junhai.yzjq\",\"channel_id\":\"800\",\"game_channel_id\":\"123456\",\"app_id\":\"50436\",\"ad_id\":\"0\",\"uid\":\"\"}"
    },
    {
        "created_at": "2022-12-22 20:05:26.000",
        "updated_at": "2023-01-11 12:53:12.000",
        "when": 1671710726955,
        "who": "agent",
        "platform": "app",
        "what": "event",
        "action": "agentsdk_channelsdk_result",
        "module": "agentsdk_login",
        "custom_field_extend": "{\"action\":\"agentsdk_channelsdk_result\",\"module\":\"agentsdk_login\",\"channel\":800,\"result\":1,\"fail_detail\":\"\"}",
        "data1": "[1]",
        "data2": "",
        "data3": "[]",
        "data4": "",
        "data5": "",
        "data6": "",
        "data7": "",
        "data8": "",
        "data9": "[]",
        "op": "",
        "jbk": 0,
        "client_id": "",
        "udid": "",
        "tz": "",
        "lang": "",
        "width": 0,
        "height": 0,
        "mac": "",
        "net": "",
        "device_name": "",
        "os": 0,
        "system_version": "",
        "apil": "",
        "idfa": "",
        "idfv": "",
        "caid1": "",
        "caid2": "",
        "imei": "",
        "oaid": "",
        "android_id": "",
        "ip": "",
        "wn": "",
        "bssid": "",
        "brand": "",
        "factory": "",
        "ua": "",
        "emulator": 0,
        "cpu_model": "",
        "rom_size": "",
        "ram_size": "",
        "unique_id": "",
        "sdk_version": "1.15.2.1124",
        "middleware_version": "1.15.2.1124",
        "app_version": "1",
        "package_name": "com.junhai.yzjq",
        "app_id": 50436,
        "ad_id": 0,
        "data_extend": "{\"sdkversion\":\"1.15.2.1124\",\"middlewareversion\":\"1.15.2.1124\",\"appversion\":1,\"packagename\":\"com.junhai.yzjq\",\"channel_id\":\"800\",\"game_channel_id\":\"123456\",\"app_id\":\"50436\",\"ad_id\":\"0\",\"uid\":\"\"}"
    },
    {
        "created_at": "2022-12-22 20:05:26.000",
        "updated_at": "2023-01-11 12:53:12.000",
        "when": 1671710726955,
        "who": "xcsdk",
        "platform": "app",
        "what": "event",
        "action": "xcsdk_agentsdk_enter",
        "module": "xcsdk_login",
        "custom_field_extend": "{\"action\":\"xcsdk_agentsdk_enter\",\"module\":\"xcsdk_login\",\"result\":1}",
        "data1": "[1]",
        "data2": "",
        "data3": "[]",
        "data4": "",
        "data5": "",
        "data6": "",
        "data7": "",
        "data8": "",
        "data9": "[]",
        "op": "",
        "jbk": 0,
        "client_id": "",
        "udid": "",
        "tz": "",
        "lang": "",
        "width": 0,
        "height": 0,
        "mac": "",
        "net": "",
        "device_name": "",
        "os": 0,
        "system_version": "",
        "apil": "",
        "idfa": "",
        "idfv": "",
        "caid1": "",
        "caid2": "",
        "imei": "",
        "oaid": "",
        "android_id": "",
        "ip": "",
        "wn": "",
        "bssid": "",
        "brand": "",
        "factory": "",
        "ua": "",
        "emulator": 0,
        "cpu_model": "",
        "rom_size": "",
        "ram_size": "",
        "unique_id": "",
        "sdk_version": "1.15.2.1124",
        "middleware_version": "1.15.2.1124",
        "app_version": "1",
        "package_name": "com.junhai.yzjq",
        "app_id": 50436,
        "ad_id": 0,
        "data_extend": "{\"sdkversion\":\"1.15.2.1124\",\"middlewareversion\":\"1.15.2.1124\",\"appversion\":1,\"packagename\":\"com.junhai.yzjq\",\"channel_id\":\"800\",\"game_channel_id\":\"123456\",\"app_id\":\"50436\",\"ad_id\":\"0\",\"uid\":\"\"}"
    },
    {
        "created_at": "2022-12-22 20:05:26.000",
        "updated_at": "2023-01-11 12:53:12.000",
        "when": 1671710726955,
        "who": "agent",
        "platform": "app",
        "what": "event",
        "action": "agentsdk_login_return",
        "module": "agentsdk_login",
        "custom_field_extend": "{\"action\":\"agentsdk_login_return\",\"module\":\"agentsdk_login\",\"type\":\"toutiao\",\"result\":[]}",
        "data1": "[]",
        "data2": "",
        "data3": "[0]",
        "data4": "",
        "data5": "",
        "data6": "",
        "data7": "",
        "data8": "",
        "data9": "[]",
        "op": "",
        "jbk": 0,
        "client_id": "",
        "udid": "",
        "tz": "",
        "lang": "",
        "width": 0,
        "height": 0,
        "mac": "",
        "net": "",
        "device_name": "",
        "os": 0,
        "system_version": "",
        "apil": "",
        "idfa": "",
        "idfv": "",
        "caid1": "",
        "caid2": "",
        "imei": "",
        "oaid": "",
        "android_id": "",
        "ip": "",
        "wn": "",
        "bssid": "",
        "brand": "",
        "factory": "",
        "ua": "",
        "emulator": 0,
        "cpu_model": "",
        "rom_size": "",
        "ram_size": "",
        "unique_id": "30296643",
        "sdk_version": "1.15.2.1124",
        "middleware_version": "1.15.2.1124",
        "app_version": "1",
        "package_name": "com.junhai.yzjq",
        "app_id": 50436,
        "ad_id": 0,
        "data_extend": "{\"sdkversion\":\"1.15.2.1124\",\"middlewareversion\":\"1.15.2.1124\",\"appversion\":1,\"packagename\":\"com.junhai.yzjq\",\"channel_id\":\"800\",\"game_channel_id\":\"123456\",\"app_id\":\"50436\",\"ad_id\":\"0\",\"uid\":\"30296643\"}"
    },
    {
        "created_at": "2022-12-22 20:05:26.000",
        "updated_at": "2023-01-11 12:53:12.000",
        "when": 1671710726955,
        "who": "agent",
        "platform": "app",
        "what": "event",
        "action": "agentsdk_realname_show",
        "module": "agentsdk_realname",
        "custom_field_extend": "{\"type\":1,\"user\":1,\"scene\":3,\"information\":\"\\u6839\\u636e\\u56fd\\u5bb6\\u76f8\\u5173\\u6cd5\\u89c4\\u8981\\u6c42\\uff0c\\u6240\\u6709\\u7f51\\u7edc\\u6e38\\u620f\\u7528\\u6237\\u5fc5\\u987b\\u4f7f\\u7528\\u771f\\u5b9e\\u6709\\u6548\\u8eab\\u4efd\\u4fe1\\u606f\\u8fdb\\u884c\\u6e38\\u620f\\u8d26\\u53f7\\u6ce8\\u518c\\u5e76\\u767b\\u5f55\\u7f51\\u7edc\\u6e38\\u620f\\uff0c\\u8bf7\\u60a8\\u5b8c\\u6210\\u5b9e\\u540d\\u6ce8\\u518c\\u3002\",\"action\":\"agentsdk_realname_show\",\"module\":\"agentsdk_realname\",\"result\":[]}",
        "data1": "[]",
        "data2": "3",
        "data3": "[1]",
        "data4": "",
        "data5": "",
        "data6": "",
        "data7": "",
        "data8": "",
        "data9": "[]",
        "op": "",
        "jbk": 0,
        "client_id": "",
        "udid": "",
        "tz": "",
        "lang": "",
        "width": 0,
        "height": 0,
        "mac": "",
        "net": "",
        "device_name": "",
        "os": 0,
        "system_version": "",
        "apil": "",
        "idfa": "",
        "idfv": "",
        "caid1": "",
        "caid2": "",
        "imei": "",
        "oaid": "",
        "android_id": "",
        "ip": "",
        "wn": "",
        "bssid": "",
        "brand": "",
        "factory": "",
        "ua": "",
        "emulator": 0,
        "cpu_model": "",
        "rom_size": "",
        "ram_size": "",
        "unique_id": "30296643",
        "sdk_version": "1.15.2.1124",
        "middleware_version": "1.15.2.1124",
        "app_version": "1",
        "package_name": "com.junhai.yzjq",
        "app_id": 50436,
        "ad_id": 0,
        "data_extend": "{\"sdkversion\":\"1.15.2.1124\",\"middlewareversion\":\"1.15.2.1124\",\"appversion\":1,\"packagename\":\"com.junhai.yzjq\",\"channel_id\":\"800\",\"game_channel_id\":\"123456\",\"app_id\":\"50436\",\"ad_id\":\"0\",\"uid\":\"30296643\"}"
    },
    {
        "created_at": "2022-12-22 20:05:26.000",
        "updated_at": "2023-01-11 12:53:12.000",
        "when": 1671710726955,
        "who": "agent",
        "platform": "app",
        "what": "event",
        "action": "agentsdk_realname_click",
        "module": "agentsdk_realname",
        "custom_field_extend": "{\"button\":6,\"module\":\"agentsdk_realname\",\"action\":\"agentsdk_realname_click\",\"result\":[]}",
        "data1": "[]",
        "data2": "",
        "data3": "[]",
        "data4": "",
        "data5": "",
        "data6": "6",
        "data7": "",
        "data8": "",
        "data9": "[]",
        "op": "",
        "jbk": 0,
        "client_id": "",
        "udid": "",
        "tz": "",
        "lang": "",
        "width": 0,
        "height": 0,
        "mac": "",
        "net": "",
        "device_name": "",
        "os": 0,
        "system_version": "",
        "apil": "",
        "idfa": "",
        "idfv": "",
        "caid1": "",
        "caid2": "",
        "imei": "",
        "oaid": "",
        "android_id": "",
        "ip": "",
        "wn": "",
        "bssid": "",
        "brand": "",
        "factory": "",
        "ua": "",
        "emulator": 0,
        "cpu_model": "",
        "rom_size": "",
        "ram_size": "",
        "unique_id": "30296643",
        "sdk_version": "1.15.2.1124",
        "middleware_version": "1.15.2.1124",
        "app_version": "1",
        "package_name": "com.junhai.yzjq",
        "app_id": 50436,
        "ad_id": 0,
        "data_extend": "{\"sdkversion\":\"1.15.2.1124\",\"middlewareversion\":\"1.15.2.1124\",\"appversion\":1,\"packagename\":\"com.junhai.yzjq\",\"channel_id\":\"800\",\"game_channel_id\":\"123456\",\"app_id\":\"50436\",\"ad_id\":\"0\",\"uid\":\"30296643\"}"
    },
    {
        "created_at": "2022-11-17 18:23:25.000",
        "updated_at": "2023-01-06 16:32:33.000",
        "when": 1668680605909,
        "who": "agent",
        "platform": "app",
        "what": "event",
        "action": "agentsdk_game_init",
        "module": "agentsdk_init",
        "custom_field_extend": "{\"action\":\"agentsdk_game_init\",\"module\":\"agentsdk_init\",\"result\":[]}",
        "data1": "[]",
        "data2": "",
        "data3": "[]",
        "data4": "",
        "data5": "",
        "data6": "",
        "data7": "",
        "data8": "",
        "data9": "[]",
        "op": "",
        "jbk": 0,
        "client_id": "",
        "udid": "",
        "tz": "",
        "lang": "",
        "width": 0,
        "height": 0,
        "mac": "",
        "net": "",
        "device_name": "",
        "os": 0,
        "system_version": "",
        "apil": "",
        "idfa": "",
        "idfv": "",
        "caid1": "",
        "caid2": "",
        "imei": "",
        "oaid": "",
        "android_id": "",
        "ip": "",
        "wn": "",
        "bssid": "",
        "brand": "",
        "factory": "",
        "ua": "",
        "emulator": 0,
        "cpu_model": "",
        "rom_size": "",
        "ram_size": "",
        "unique_id": "",
        "sdk_version": "1.14.7.1101",
        "middleware_version": "1.14.8.1101",
        "app_version": "1",
        "package_name": "com.junhai.yzjq",
        "app_id": 50436,
        "ad_id": 0,
        "data_extend": "{\"sdkversion\":\"1.14.7.1101\",\"middlewareversion\":\"1.14.8.1101\",\"appversion\":1,\"packagename\":\"com.junhai.yzjq\",\"channel_id\":\"800\",\"game_channel_id\":\"123456\",\"app_id\":\"50436\",\"ad_id\":\"0\",\"uid\":\"\"}"
    },
    {
        "created_at": "2022-11-17 18:23:25.000",
        "updated_at": "2023-01-06 16:32:33.000",
        "when": 1668680605909,
        "who": "agent",
        "platform": "app",
        "what": "event",
        "action": "agentsdk_init_result",
        "module": "agentsdk_login",
        "custom_field_extend": "{\"action\":\"agentsdk_agreement_switch\",\"module\":\"agentsdk_login\",\"switch_result\":{\"1\":\"1\",\"2\":\"1\",\"3\":\"0\"}}",
        "data1": "[1,1,0]",
        "data2": "",
        "data3": "[1,2,3]",
        "data4": "",
        "data5": "",
        "data6": "",
        "data7": "",
        "data8": "",
        "data9": "{\"1\":\"1\",\"2\":\"1\",\"3\":\"0\"}",
        "op": "",
        "jbk": 0,
        "client_id": "",
        "udid": "",
        "tz": "",
        "lang": "",
        "width": 0,
        "height": 0,
        "mac": "",
        "net": "",
        "device_name": "",
        "os": 0,
        "system_version": "",
        "apil": "",
        "idfa": "",
        "idfv": "",
        "caid1": "",
        "caid2": "",
        "imei": "",
        "oaid": "",
        "android_id": "",
        "ip": "",
        "wn": "",
        "bssid": "",
        "brand": "",
        "factory": "",
        "ua": "",
        "emulator": 0,
        "cpu_model": "",
        "rom_size": "",
        "ram_size": "",
        "unique_id": "",
        "sdk_version": "1.14.7.1101",
        "middleware_version": "1.14.8.1101",
        "app_version": "1",
        "package_name": "com.junhai.yzjq",
        "app_id": 50436,
        "ad_id": 0,
        "data_extend": "{\"sdkversion\":\"1.14.7.1101\",\"middlewareversion\":\"1.14.8.1101\",\"appversion\":1,\"packagename\":\"com.junhai.yzjq\",\"channel_id\":\"800\",\"game_channel_id\":\"123456\",\"app_id\":\"50436\",\"ad_id\":\"0\",\"uid\":\"\"}"
    }
]

# status: 0-可为空，1-不为空
c = {
    "agentsdk_init_result": {
        "created_at": "2022-11-17 18:23:25.000",
        "updated_at": "2023-01-06 16:32:33.000",
        "when": 1668680605909,
        "who": "agent",
        "platform": "app",
        "what": "event",
        "module": "agentsdk_login",
        "custom_field_extend": "{\"action\":\"agentsdk_agreement_switch\",\"module\":\"agentsdk_login\",\"switch_result\":{\"1\":\"1\",\"2\":\"1\",\"3\":\"0\"}}",
        "data1": "[1,1,0]",
        "data2": "",
        "data3": "[1,2,3]",
        "data4": "",
        "data5": "",
        "data6": "",
        "data7": "",
        "data8": "",
        "data9": "{\"1\":\"1\",\"2\":\"1\",\"3\":\"0\"}",
        "op": "",
        "jbk": 0,
        "client_id": "",
        "udid": "",
        "tz": "",
        "lang": "",
        "width": 0,
        "height": 0,
        "mac": "",
        "net": "",
        "device_name": "",
        "os": 0,
        "system_version": "",
        "apil": "",
        "idfa": "",
        "idfv": "",
        "caid1": "",
        "caid2": "",
        "imei": "",
        "oaid": "",
        "android_id": "",
        "ip": "",
        "wn": "",
        "bssid": "",
        "brand": "",
        "factory": "",
        "ua": "",
        "emulator": 0,
        "cpu_model": "",
        "rom_size": "",
        "ram_size": "",
        "unique_id": "",
        "sdk_version": "1.14.7.1101",
        "middleware_version": "1.14.8.1101",
        "app_version": "1",
        "package_name": "com.junhai.yzjq",
        "app_id": 50436,
        "ad_id": 0,
        "data_extend": "{\"sdkversion\":\"1.14.7.1101\",\"middlewareversion\":\"1.14.8.1101\",\"appversion\":1,\"packagename\":\"com.junhai.yzjq\",\"channel_id\":\"800\",\"game_channel_id\":\"123456\",\"app_id\":\"50436\",\"ad_id\":\"0\",\"uid\":\"\"}"
    },
    "agentsdk_game_init": {
        "created_at": "2022-11-17 18:23:25.000",
        "updated_at": "2023-01-06 16:32:33.000",
        "when": 1668680605909,
        "who": "agent",
        "platform": "app",
        "what": "event",
        "module": "agentsdk_login",
        "custom_field_extend": "{\"action\":\"agentsdk_agreement_switch\",\"module\":\"agentsdk_login\",\"switch_result\":{\"1\":\"1\",\"2\":\"1\",\"3\":\"0\"}}",
        "data1": "[1,1,0]",
        "data2": "",
        "data3": "[1,2,3]",
        "data4": "",
        "data5": "",
        "data6": "",
        "data7": "",
        "data8": "",
        "data9": "{\"1\":\"1\",\"2\":\"1\",\"3\":\"0\"}",
        "op": "",
        "jbk": 0,
        "client_id": "",
        "udid": "",
        "tz": "",
        "lang": "",
        "width": 0,
        "height": 0,
        "mac": "",
        "net": "",
        "device_name": "",
        "os": 0,
        "system_version": "",
        "apil": "",
        "idfa": "",
        "idfv": "",
        "caid1": "",
        "caid2": "",
        "imei": "",
        "oaid": "",
        "android_id": "",
        "ip": "",
        "wn": "",
        "bssid": "",
        "brand": "",
        "factory": "",
        "ua": "",
        "emulator": 1,
        "cpu_model": "",
        "rom_size": "",
        "ram_size": "",
        "unique_id": "",
        "sdk_version": "1.14.7.1101",
        "middleware_version": "1.14.8.1101",
        "app_version": "1",
        "package_name": "com.junhai.yzjq",
        "app_id": 50436,
        "ad_id": 0,
        "data_extend": "{\"sdkversion\":\"1.14.7.1101\",\"middlewareversion\":\"1.14.8.1101\",\"appversion\":1,\"packagename\":\"com.junhai.yzjq\",\"channel_id\":\"800\",\"game_channel_id\":\"123456\",\"app_id\":\"50436\",\"ad_id\":\"0\",\"uid\":\"\"}"
    }
}

d = []

for i in track_data:
    result = {i["action"]: {}, "fail": {}}
    for key_i in i:
        for key_c in c:
            if i["action"] == key_c:
                if key_i != "action" and i[key_i] == c[key_c][key_i]:
                    if key_i == "data_extend" or key_i == "custom_field_extend":
                        result[i["action"]].update(
                            {key_i: str(c[key_c][key_i].replace('\"', '"')) + "(" + "校验通过，" + "实际值：" + str(
                                i[key_i]) + ")"})
                    else:
                        result[i["action"]].update(
                            {key_i: str(c[key_c][key_i]) + "(" + "校验通过，" + "实际值：" + str(i[key_i]) + ")"})

                elif key_i != "action" and i[key_i] != c[key_c][key_i]:
                    if key_i == "data_extend" or key_i == "custom_field_extend":
                        result["fail"].update(
                            {key_i: str(c[key_c][key_i].replace('\"', '"')) + "(" + "校验失败，" + "实际值：" + str(
                                i[key_i]) + ")"})
                    else:
                        result["fail"].update(
                            {key_i: str(c[key_c][key_i]) + "(" + "校验失败，" + "实际值：" + str(i[key_i]) + ")"})
                else:
                    pass
    d.append(json.loads(json.dumps(result)))
# d = []
# for j in track_data:
#     result = {"true": {}, "fail": {}}
#     for key in j:
#
#         for c in b:
#
#             for key_b in c:
#
#                 if key_b == key:
#                     if c[key_b]["status"] == 0 and c[key_b]["value"] == "":
#                         result["true"].update({key: "" + "(" + "校验通过，实际值为空" + ")"})
#                     elif c[key_b]["value"] == j[key]:
#                         result["true"].update({key: j[key] + "(" + "校验通过，" + "实际值：" + j[key] + ")"})
#                     else:
#                         result["fail"].update({key: str(c[key_b]["value"]) + "(" + "校验失败，" + "实际值：" + j[key] + ")"})
#     d.append(result)
# print(d)
